<?php 
/* SVN FILE: $Id$ */
/* Tema Test cases generated on: 2009-03-30 05:03:20 : 1238404580*/
App::import('Model', 'Tema');

class TemaTestCase extends CakeTestCase {
	var $Tema = null;
	var $fixtures = array('app.tema', 'app.user', 'app.topico');

	function startTest() {
		$this->Tema =& ClassRegistry::init('Tema');
	}

	function testTemaInstance() {
		$this->assertTrue(is_a($this->Tema, 'Tema'));
	}

	function testTemaFind() {
		$this->Tema->recursive = -1;
		$results = $this->Tema->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Tema' => array(
			'tema'  => 1,
			'user_id'  => 1,
			'nombre'  => 'Lorem ipsum dolor sit amet',
			'fecha'  => '2009-03-30'
			));
		$this->assertEqual($results, $expected);
	}
}
?>